class Animal{
    public Animal(String name,int age){
        this.name=name;
        this.age=age;
    }
    public String name;
    public int age;

    public void methods(){
        System.out.println("Animal methods()");
    }
}
class Dog extends Animal{
    public Dog(String name,int age){
        super(name, age);
    }
    public void bark(){
        System.out.println(this.name+"汪汪叫");
    }
    public void methods(){
        System.out.println("Dog methods()");
    }
    public void Test2(){
        methods();
        super.methods();
    }
}
class Cat extends Animal{
    public void miaomiao(){
        System.out.println(this.name+"喵喵叫");
    }
    public void methods(){
        System.out.println("Cat methods()");
    }
    public Cat(String name,int age){
        super(name, age);
    }
}
public class Test {

    public static void main(String[] args) {
        Dog dog=new Dog("yuan",5);
        dog.Test2();

        final int a=10;
        a=20;
        System.out.println(a);
    }
}
